package com.cema.manage.common.utils;

import org.springframework.core.io.support.PropertiesLoaderUtils;

import java.io.IOException;
import java.util.Properties;

public class PropertiesUtils {
    public PropertiesUtils() {
    }

    public static Properties getPropertyFile(String propertyName) {
        Properties props = new Properties();

        try {
            props = PropertiesLoaderUtils.loadAllProperties(propertyName);
        } catch (IOException var3) {
            var3.printStackTrace();
        }

        return props;
    }
}
